<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>toDoList</title>
    <link rel="stylesheet" href="style.css">
    <link rel="manifest" href="manifest.json">
<!-- 优化图标引用，指定尺寸和用途 -->
    <link rel="icon" href="icons/icon1.svg" type="image/svg+xml" sizes="200x150">
    <link rel="icon" href="icons/icon3.svg" type="image/svg+xml" sizes="200x150">
    <link rel="icon" href="icons/icon4.svg" type="image/svg+xml" sizes="200x150">
</head>
<body>
    <div class="container">
        <div class="todo">
            <h1>typescript toDoList</h1>
            <input type="text" id="new-todo" placeholder="please add new list">
            <button id="add-todo">add</button>
            <ul id="todo-list"></ul>
        </div>
    </div>
    <script src="app.js">
    </script>
    <script>
        if ("serviceWorker" in navigator) {
            navigator.serviceWorker.register("service-worker.js").then((registration) => {
        // 强制更新Service Worker
        registration.update();
      }).catch((error) => {
        console.error("Service Worker registration failed: ", error);
      });
    }
    </script>
</body>
</html>